const getters = {
  token: state => state.user.token,
  uid: state => state.user.uid,
  weather: state => state.user.weather,
  // 等价于
  // uid: function(state) {
	  // getters 类似全局的计算属性，双向绑定，当 state.user.uid 变化时，使用该getters的地方的值也会修改
  //   return state.user.uid;
  // }
}
export default getters
